home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
kermit.columbia.edu
/
kermit.columbia.edu.tar
/
kermit.columbia.edu
/
newsgroups
/
misc.20000217-20000824
/
000095_news@columbia.edu _Sun Mar 5 11:42:42 2000.msg
< prev
next >
Wrap
Internet Message Format
|
2000-08-23
|
2KB
Return-Path: <news@columbia.edu>
Received: from newsmaster.cc.columbia.edu (newsmaster.cc.columbia.edu [128.59.59.30])
by watsun.cc.columbia.edu (8.8.5/8.8.5) with ESMTP id LAA13047
for <kermit.misc@watsun.cc.columbia.edu>; Sun, 5 Mar 2000 11:42:42 -0500 (EST)
Received: (from news@localhost)
by newsmaster.cc.columbia.edu (8.9.3/8.9.3) id LAA15322
for kermit.misc@watsun.cc.columbia.edu; Sun, 5 Mar 2000 11:33:27 -0500 (EST)
X-Authentication-Warning: newsmaster.cc.columbia.edu: news set sender to <news> using -f
From: fdc@watsun.cc.columbia.edu (Frank da Cruz)
Subject: Re: bug with Echo on Solaris
Date: 5 Mar 2000 16:33:24 GMT
Organization: Columbia University
Message-ID: <89u28k$eun$1@newsmaster.cc.columbia.edu>
To: kermit.misc@columbia.edu
In article <38c15efa.2305895@jayathome>,
Jay McCanta <jmccanta@immunex.com> wrote:
: I believe this is an UNIX buffering issue. With this script...
:
: set input echo on
: echo 1
: echo 2
: set host ts:3000
: echo 3
: input -1 {bye}
: echo 4
: exit
:
: Looking at the log during the INPUT command, line 3 is not there.
: While waiting for {bye} in thee input stream, the input stream appears
: in the log. Only after the script exits, do the 3 and the 4 appear in
: the log.
:
: Is there a way to flush the log after every echo?
:
Sure. Echo to standard error (which is unbuffered) rather than standard
output. Replace:
echo foo
with:
write error foo\13\10
or:
write-line error foo
- Frank